import request from '@/utils/request'

// 获取列表
export function getClassIndex(params) {
    return request({
        url: '/manage/rource/classIndex',
        method: 'get',
        params
    })
}
// 添加分类
export function classAdd(data) {
    return request({
        url: '/manage/rource/classAdd',
        method: 'post',
        data
    })
}

export function classEdit(data) {
    return request({
        url: '/manage/rource/classEdit',
        method: 'post',
        data
    })
}

export function classLevelEdit(data) {
    return request({
        url: '/manage/rource/classLevelEdit',
        method: 'post',
        data
    })
}

export function classStatusEdit(data) {
    return request({
        url: '/manage/rource/classStatusEdit',
        method: 'post',
        data
    })
}

export function classDel(data) {
    return request({
        url: '/manage/rource/classDel',
        method: 'post',
        data
    })
}


// 背景图片
export function getBgIndex(params) {
    return request({
        url: '/manage/rource/bgIndex',
        method: 'get',
        params
    })
}

export function bgAdd(data) {
    return request({
        url: '/manage/rource/bgAdd',
        method: 'post',
        data
    })
}

export function bgEdit(data) {
    return request({
        url: '/manage/rource/bgEdit',
        method: 'post',
        data
    })
}

export function bgStatusEdit(data) {
    return request({
        url: '/manage/rource/bgStatusEdit',
        method: 'post',
        data
    })
}
export function bgLevelEdit(data) {
    return request({
        url: '/manage/rource/bgLevelEdit',
        method: 'post',
        data
    })
}
export function bgDel(data) {
    return request({
        url: '/manage/rource/bgDel',
        method: 'post',
        data
    })
}


// 专题图片
export function getZtIndex(params) {
    return request({
        url: '/manage/rource/imgIndex',
        method: 'get',
        params
    })
}

export function ztAdd(data) {
    return request({
        url: '/manage/rource/imgAdd',
        method: 'post',
        data
    })
}

export function ztEdit(data) {
    return request({
        url: '/manage/rource/imgEdit',
        method: 'post',
        data
    })
}

export function ztStatusEdit(data) {
    return request({
        url: '/manage/rource/imgStatusEdit',
        method: 'post',
        data
    })
}
export function ztLevelEdit(data) {
    return request({
        url: '/manage/rource/imgLevelEdit',
        method: 'post',
        data
    })
}
export function ztDel(data) {
    return request({
        url: '/manage/rource/imgDel',
        method: 'post',
        data
    })
}

// 漂浮物
export function getfloatIndex(params) {
    return request({
        url: '/manage/rource/floatIndex',
        method: 'get',
        params
    })
}

export function floatAdd(data) {
    return request({
        url: '/manage/rource/floatAdd',
        method: 'post',
        data
    })
}

export function floatEdit(data) {
    return request({
        url: '/manage/rource/floatEdit',
        method: 'post',
        data
    })
}

export function floatStatusEdit(data) {
    return request({
        url: '/manage/rource/floatStatusEdit',
        method: 'post',
        data
    })
}
export function floatLevelEdit(data) {
    return request({
        url: '/manage/rource/floatLevelEdit',
        method: 'post',
        data
    })
}
export function floatDel(data) {
    return request({
        url: '/manage/rource/floatDel',
        method: 'post',
        data
    })
}


// 背景音乐
export function getMusicIndex(params) {
    return request({
        url: '/manage/rource/musicIndex',
        method: 'get',
        params
    })
}

export function musicAdd(data) {
    return request({
        url: '/manage/rource/musicAdd',
        method: 'post',
        data
    })
}

export function musicEdit(data) {
    return request({
        url: '/manage/rource/musicEdit',
        method: 'post',
        data
    })
}

export function musicStatusEdit(data) {
    return request({
        url: '/manage/rource/musicStatusEdit',
        method: 'post',
        data
    })
}
export function musicLevelEdit(data) {
    return request({
        url: '/manage/rource/musicLevelEdit',
        method: 'post',
        data
    })
}
export function musicDel(data) {
    return request({
        url: '/manage/rource/musicDel',
        method: 'post',
        data
    })
}

